#ifndef VIDEOPLAYER_H
#define VIDEOPLAYER_H
#include <QDir>
#include <QTimer>
#include <qvideowidget.h>
#include <qmediaplayer.h>

class VideoPlayer : public QVideoWidget
{
    Q_OBJECT

    public:
        static VideoPlayer* get();

    signals:


    public slots:
        void playSong(QUrl streamUrl);

    private:
        VideoPlayer();
        QMediaPlayer* player;
        static VideoPlayer* instance;
};

#endif // VIDEOPLAYER_H
